<%--
  Created by IntelliJ IDEA.
  User: jshand
  Date: 2022-10-21
  Time: 10:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

展示客户端的cookie信息
<%
    Cookie[] cookies = request.getCookies();
    if(cookies != null && cookies.length>0) {
        for (Cookie cookie : cookies) {
            String info = "name=" + cookie.getName() + "\tvalue=" + cookie.getValue();
            System.out.println("info = " + info);
        }
    }

%>



</body>
</html>
